'use strict';
const uniID = require('uni-id') 
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const res = await uniID.loginByWeixin({
	    code: event.code
	  });
	
	//返回数据给客户端
	return res;
};
